package com.pkk.log.web.configure;

import javax.security.auth.Subject;

/**
 * Shiro权限标签
 */
public class ShiroTag {

  /**
   * 是否拥有该权限
   *
   * @param permission 权限标识
   * @return true：是     false：否
   */
  public boolean hasPermission(String permission) {
//    Subject subject = SecurityUtils.getSubject();
//    return subject != null && subject.isPermitted(permission);
    return true;
  }

}
